package com.xsq.newmall01.Mapper;

import com.xsq.newmall01.Dao.Good;
import com.xsq.newmall01.Dao.MerchantUser;
import com.xsq.newmall01.Dao.Order;
import com.xsq.newmall01.Dao.Ownership;

import java.util.List;

public interface MerchantMapper {
    MerchantUser ismerchantuserexist(MerchantUser merchantUser);
    void insertmerchantuser(MerchantUser merchantUser);
    void updatemerchantuser(MerchantUser merchantUser);
    List<Good> selectownedgoods(MerchantUser merchantUser);
    List<Order> selectownorder(MerchantUser merchantUser);
    void insertgood(Good good);
    void insertownership(Ownership ownership);
    void deletegood(Good good);
    void deleteownership(Ownership ownership);
    boolean checkMerchantUsernameExists(String username);
    Ownership getOwnershipByGoodId(int goodId);
    MerchantUser selectMerchantById(int goodId);
}
